<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
          integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
            integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
            crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
            integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
            crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
            integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
            crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
    <div class="col">
        <form action="/filterMboard/" method="post">
            {% csrf_token %}
            <table class="table table-hover">
                <tbody>
                <tr>
                    <th>品牌</th>
                    <td>
                        <select class="custom-select" name="Brand">
                            <option selected value="">选择品牌</option>
                            <option value="华硕">华硕</option>
                            <option value="技嘉">技嘉</option>
                            <option value="msi微星">msi微星</option>
                            <option value="七彩虹">七彩虹</option>
                            <option value="映泰">映泰</option>
                            <option value="铭瑄">铭瑄</option>
                            <option value="梅捷">梅捷</option>
                            <option value="昂达">昂达</option>
                            <option value="华擎">华擎</option>
                            <option value="影驰">影驰</option>
                            <option value="精粤">精粤</option>
                            <option value="圣旗">圣旗</option>
                            <option value="铭速">铭速</option>
                            <option value="ASL翔升">ASL翔升</option>
                            <option value="劲鲨">劲鲨</option>
                            <option value="艾尔莎">艾尔莎</option>
                            <option value="EVGA">EVGA</option>
                            <option value="NZXT">NZXT</option>
                            <option value="升技">升技</option>
                            <option value="超微">超微</option>
                            <option value="欧比亚">欧比亚</option>
                            <option value="双敏">双敏</option>
                            <option value="维博特">维博特</option>
                            <option value="天机">天机</option>
                            <option value="爱林莎">爱林莎</option>
                            <option value="亚帝伦">亚帝伦</option>
                            <option value="同冠">同冠</option>
                            <option value="科脑">科脑</option>
                            <option value="鸿基">鸿基</option>
                            <option value="晋尚">晋尚</option>
                            <option value="迈胜">迈胜</option>
                            <option value="悦升">悦升</option>
                            <option value="银狐">银狐</option>
                            <option value="科越">科越</option>
                            <option value="明硕">明硕</option>
                            <option value="技翔">技翔</option>
                            <option value="索泰">索泰</option>
                            <option value="盈通">盈通</option>
                            <option value="精英">精英</option>
                            <option value="捷波">捷波</option>
                            <option value="杰微">杰微</option>
                            <option value="威盛">威盛</option>
                            <option value="磐正">磐正</option>
                            <option value="精威">精威</option>
                            <option value="钻石">钻石</option>
                            <option value="AOpen">AOpen</option>
                            <option value="顶星">顶星</option>
                            <option value="富士康">富士康</option>
                            <option value="斯巴达克">斯巴达克</option>
                            <option value="冠盟">冠盟</option>
                            <option value="信步">信步</option>
                            <option value="联强">联强</option>
                            <option value="杰灵">杰灵</option>
                            <option value="致铭">致铭</option>
                            <option value="丹丁">丹丁</option>
                            <option value="磐英">磐英</option>
                            <option value="科迪亚">科迪亚</option>
                            <option value="映众">映众</option>
                            <option value="蓝宝石">蓝宝石</option>
                            <option value="祺祥">祺祥</option>
                            <option value="Intel">Intel</option>

                        </select>
                    </td>
                </tr>

                <tr>
                    <th>CPU插槽</th>
                    <td>
                        <select class="custom-select" name="CPUType">
                            <option selected value="">选择插槽</option>
                            <option value="LGA 2066">LGA 2066</option>
                            <option value="LGA 1700">LGA 1700</option>
                            <option value="LGA 1200">LGA 1200</option>
                            <option value="LGA 1151">LGA 1151</option>
                            <option value="LGA 1150">LGA 1150</option>
                            <option value="LGA 1155">LGA 1155</option>
                            <option value="LGA 2011-V3">LGA 2011-V3</option>
                            <option value="Socket TR4">Socket TR4</option>
                            <option value="Socket sTRX4">Socket sTRX4</option>
                            <option value="Socket AM4">Socket AM4</option>
                            <option value="Socket AM3+">Socket AM3+</option>
                            <option value="Socket FM2+">Socket FM2+</option>
                            <option value="Socket FM2">Socket FM2</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>主板板型</th>
                    <td>
                        <select class="custom-select" name="Size">
                            <option selected value="">选择主板板型</option>
                            <option value="ATX板型">ATX（标准型）</option>
                            <option value="Micro ATX板型）">M-ATX（紧凑型）</option>
                            <option value="Mini-ITX板型">Mini-ITX（迷你型）</option>
                            <option value="E-ATX板型">E-ATX（加强型）</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>芯片组</th>
                    <td>
                        <select class="custom-select" name="Chipset">
                            <option selected value="">选择芯片组</option>
                            <option value="Z790">Z790</option>
                            <option value="Z690">Z690</option>
                            <option value="Z590">Z590</option>
                            <option value="Z490">Z490</option>
                            <option value="Z390">Z390</option>
                            <option value="B660">B660</option>
                            <option value="B560">B560</option>
                            <option value="B460">B460</option>
                            <option value="B365">B365</option>
                            <option value="H610">H610</option>
                            <option value="H510">H510</option>
                            <option value="H370">H370</option>
                            <option value="B360">B360</option>
                            <option value="H410">H410</option>
                            <option value="H310">H310</option>
                            <option value="Z370">Z370</option>
                            <option value="X299">X299</option>
                            <option value="X670">X670</option>
                            <option value="TRX40">TRX40</option>
                            <option value="X570">X570</option>
                            <option value="X470">X470</option>
                            <option value="A520">A520</option>
                            <option value="B550">B550</option>
                            <option value="B450">B450</option>
                            <option value="X399">X399</option>
                            <option value="A320">A320</option>
                            <option value="B350">B350</option>
                            <option value="X370">X370</option>
                            <option value="A88X">A88X</option>
                            <option value="A85X">A85X</option>
                            <option value="A68H">A68H</option>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>内存类型</th>
                    <td>
                        <select class="custom-select" name="MemoryType">
                            <option selected value="">选择内存类型</option>
                            <option value="DDR3">DDR3</option>
                            <option value="DDR4">DDR4</option>
                            <option value="DDR5">DDR5</option>
                        </select>
                    </td>
                </tr>


                <tr>
                    <th>PCI-E标准</th>
                    <td>
                        <select class="custom-select" name="GraphicsType">
                            <option selected value="">选择PCI-E标准</option>
                            <option value="PCI-E 5.0">PCI-E 5.0</option>
                            <option value="PCI-E 4.0">PCI-E 4.0</option>
                            <option value="PCI-E 3.0">PCI-E 3.0</option>
                        </select>
                    </td>
                </tr>
                </tbody>
                <tr>
                    <td></td>
                    <th>
                        <button type="submit" class="btn btn-primary">筛选</button>
                    </th>
                </tr>

            </table>
        </form>
    </div>
    <div class="col">
        {% for case in cases %}
        <div class="card">
            <div class="card-body">
                <h5 class="card-title">{{case.Name}}</h5>
                <p class="card-text">CPU插槽:{{case.CPUType}}</p>
                <p class="card-text">主板板型:{{case.Size}}</p>
                <p class="card-text">芯片组:{{case.Chipset}}</p>
                <p class="card-text">内存类型:{{case.MemoryType}}</p>
                <p class="card-text">PCI-E标准:{{case.GraphicsType}}</p>
                <p class="card-text">价格:￥{{case.Price}}</p>
                <div class="btn-group" role="group" aria-label="Basic example">
                    <form action="/configReturnMboard/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">添加到配置单</button>
                    </form>
                    <form action="/moreInfoMboard/" method="post">
                        {% csrf_token %}
                        <input name="id" hidden="hidden" value="{{case.Name}}">
                        <button type="submit" class="btn btn-primary">详细信息</button>
                    </form>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
</body>
</html>